<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-for遍历数组</title>
    <script src="js/vuejs-2.5.16.js"></script>
</head>
<body>
<div id="app">
<ul>
    <li v-for="(item,index) in arr">{{item}}={{index}}</li>
</ul>
</div>

</body>
<script>
    new Vue({
        el:"#app",
        data:{
            arr:[1,2,3,4,5]
        }
    });
</script>
</html>